package fausto.contact 
{
	import ben.ImgTools;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	/**
	 * ...
	 * @author Ben.
	 */
	public class ContactContent extends Sprite
	{
		private var _i:Infos
		private var _d:XML;
		
		public var _contactImg:Sprite
		public var _txt:TextField
		
		public function ContactContent() 
		{
			_i = Infos.getInstance();
			
			_txt.width = 520;
			_txt.autoSize = TextFieldAutoSize.LEFT;
			visible = false;
		}
		
		public function createContact():void
		{
			_d = _i.theXML.part[4];
			var _it:ImgTools = new ImgTools();
			_it.ImgFitSize("img/"+_d.img, _contactImg, 200, 200);
			_txt.htmlText = _d.contact;
		}
		
	}

}